<ul id="${id}" name="${id}" style="padding: 0;width: 100%;font-size: 16px">
    @for(item in list){
    <div style="display: none">
        <p style="background-color: palegreen;font-weight: bold;padding-left: 10px"
           value="${item.getTime}">${item.getTime}</p>
    </div>
    <li value="${item.customerId}"
        style="box-shadow: 2px 2px 3px #888888;border-bottom: 10px solid #5cdfc0;position: relative;background:white;padding:10px 0 0 30px;margin-top: 30px;">
        <p style="font-weight: bold;font-size: 28px;line-height: 40px;color: #5cdfc0;"
           value="${item.operationTime}">${item.operationTimeOne}</p>
        <p style="font-weight: bold;font-size: 22px;color: #5cdfc0;"
           value="${item.operationTime}">${item.operationTimeTwo}</p>
        <div value="${item.operationTime}" style="padding: 20px 0;overflow: hidden;"></div>
    </li>
    <script>
        $.ajax({
            url: Feng.ctxPath + "/consultant/getOpenBillListss",
            type: "post",
            data: {
                "operationTime": $("p[value='${item.operationTime}']").text(),
                "customerId": $("#customerId").val(),
                "getTime": $("p[value='${item.getTime}']").text(),
                "reservationsId": $("#reservationsId").val()
            },
            success: function (data) {
                var s1 = '';
                var ss = "";
                var sss = ""
                for (var i = 0; i < data.length; i++) {
                    ss += ' <div class="data_row" style="padding: 5px 0;">'+
                        '<span style="display: inline-block;width: 10%;">'+ data[i].department+'</span>' +
                        '<span style="display: inline-block;width: 10%;">'+ data[i].firstLevelProject+'</span>' +
                        '<span style="display: inline-block;width: 36%;">'+ data[i].payServiceName+'</span>' +
                        '<span style="font-weight: bold;font-size: 16px">现场TC:' + data[data.length - 1].fieldTc + '</span>' +
                        '</div>';
                    sss += ' <div class="data_row" style="margin-top: 18px;margin-bottom: 20px">' +
                        '&nbsp&nbsp' + data[i].department + '&nbsp&nbsp' + data[i].firstLevelProject + '&nbsp&nbsp </div>';
                }
                if (data.length > 0) {
                    if ((data[data.length - 1].dealStatus) == "已开单" && (data[data.length - 1].reservationsId) == $("#reservationsId").val()) {
                        s1 += ' <div class="rows">&nbsp&nbsp折后总金额：<span style="font-weight: bold;font-size: 18px">' + data[data.length - 1].totleFoldingPay.toFixed(2) + '元</span><span>' + data[data.length - 1].dealStatus + '</span>';
                        $("div[value='${item.operationTime}']").html(s1 + ss + '<div class="rows"> &nbsp&nbsp门诊：' + data[data.length - 1].outpatientName + '&nbsp病历号：' + data[data.length - 1].medicalRecordNumber + '&nbsp ' + '</div>');
                    } else if ((data[data.length - 1].dealStatus) == "已成交" && (data[data.length - 1].reservationsId) == $("#reservationsId").val()) {
                        s1 += '<span style="font-weight: bold;font-size: 35px;position: absolute;right: 5%;bottom: 32%;color: #31add1">' + data[data.length - 1].totleServiceActualPay + '<span style="font-size: 18px;margin-left: 5px;">元</span></span>' +
                            '<span style="font-weight: bold;font-size: 18px;position: absolute;right: 5%;bottom: 15%;">欠款 ' + data[data.length - 1].accountArrears + '元</span>' +
                            '<span  style="padding: 4px 18px;background:#5cdfc0;position: absolute;top: 7%;left: 32%;color: white;border-radius: 5px;">' + data[data.length - 1].dealStatus + '</span>'+
                            '<span style="position: absolute;top: 10%;right: 40%">【' + data[data.length - 1].outpatientName + '】</span>';
                        $("div[value='${item.operationTime}']").html(s1 + ss);
                    } else if ((data[data.length - 1].dealStatus) == "未成交" && (data[data.length - 1].reservationsId) == $("#reservationsId").val()) {
                        s1 += '&nbsp&nbsp成交状态：<span  style="padding: 8px;background:#5cdfc0;">' + data[data.length - 1].dealStatus + '</span>';
                        s1 += ' &nbsp&nbsp未成交原因 ' + data[data.length - 1].noDealCause + '</div>';
                        $("div[value='${item.operationTime}']").html(s1 + sss + '<div class="rows"> &nbsp&nbsp门诊：' + data[data.length - 1].outpatientName + '&nbsp病历号：' + data[data.length - 1].medicalRecordNumber + '</div>');
                    } else if ((data[data.length - 1].dealStatus) == "作废" && (data[data.length - 1].reservationsId) == $("#reservationsId").val()) {
                        s1 += '&nbsp&nbsp成交状态：<span  style="padding: 8px;background:#5cdfc0;">' + data[data.length - 1].dealStatus + '</span>';
                        s1 += ' &nbsp&nbsp作废原因 ' + data[data.length - 1].toVoidCause + '</div>';
                        $("div[value='${item.operationTime}']").html(s1 + sss + '<div class="rows"> &nbsp&nbsp门诊：' + data[data.length - 1].outpatientName + '&nbsp病历号：' + data[data.length - 1].medicalRecordNumber + '</div>');
                    }
                }
            },
            error: function (data) {
                alert('内部故障!');
            }
        });
    </script>
    @}
</ul>
@if(isNotEmpty(underline) && underline == 'true'){
<div class="hr-line-dashed"></div>
@}


